//
//  RootClass.m
//  UI15-Homework
//
//  Created by dllo on 16/8/11.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "RootClass.h"
#import "Tlist.h"
@implementation RootClass
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    NSMutableArray *tlistArray = [NSMutableArray array];
    if ([key isEqualToString:@"tList"]) {
        for (NSDictionary *dic in value) {
            Tlist *tlist = [Tlist modelWithDic:dic];
            [tlistArray addObject:tlist];
        }
    }
    _tList = tlistArray;
}
@end
